package com.bw.dg.controller;

import com.bw.dg.common.MethodLog;
import com.bw.dg.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.lang.annotation.*;
import java.util.List;

/**
 * @ProjectName: guding
 * @Package: com.bw.dg.controller
 * @ClassName: LogController
 * @Author: 社会佩奇
 * @Description: LogController
 * @Date: 2020/4/21 21:55
 * @Version: 1.0
 */

@RestController
@CrossOrigin
@RequestMapping("/logg")
public class LogController {

    @Autowired
    public LogService logService;

    @MethodLog
    @RequestMapping("/findLogList")
    public List getLogList(){
        List list=logService.getLogList();
        return list;
    }


}
